#pragma once
#include<iostream>
#include<sys/socket.h>
enum ExitCode
{
    OK=0,
    USAGE_ERR,
    SOCKET_ERR,
    BIND_ERR,
    LISTEN_ERR,
    CONNECT_ERR,
    FORK_ERR,
    OPEN_ERR
};

class NoCopy
{
    public:
    NoCopy(){}
    ~NoCopy(){}
    NoCopy(const NoCopy& other)=delete;
    const NoCopy& operator=(const NoCopy& other)=delete;
};

#define CONV(addr) ((struct sockaddr* )&addr)